package com.green.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.green.business.domain.Sales;
import com.green.system.vo.BaseVo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = false)
public class ReportsVo extends BaseVo {
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;
    //进货金额
    private Double inportsum;
    //销售金额
    private Double salessum;
    //收入
    private Double revenue;
    //支出
    private Double outlay;
    //利润
    private Double profit;
    //利润最高商品
    private List<String> hprofitgoods;

//    //所有商品总数量
    private Integer goodsnum;
    private List<Map.Entry<String, Integer>> salablegoods;
//    //查询时间段内月份(转数组字符类型)
    //时间段月份内支出
    private List<Map.Entry<String, Double>>  monthlyoutlay;
    //时间段内月份收入
    private List<Map.Entry<String, Double>>  monthlyrevenue;
    //时间段内月份利润
    private List<Map.Entry<String, Double>> monthlyprofit;
    //超市金额
    private Double marketsum;
    //畅销商品类型
    private List<Map.Entry<String, Integer>> salablegoodsType;
    //正利润商品
    private List<Map.Entry<String, Double>> pprofitgoods;
    //负利润商品
    private List<Map.Entry<String, Double>> nprofitgoods;
}
